#ifndef BUFDBCLIENT_H
#define BUFDBCLIENT_H

#include <algorithm>
#include <fstream>
#include <iostream>
#include <google/protobuf/message.h>
#include <google/protobuf/descriptor.h>
#include <iterator>
#include <list>
#include <sstream>
#include <string>
#include <vector>
#include <deque>
#include "bufferDB.h"

using namespace std;

class bufDBClient : public bufferDB
{
	public: bufDBClient(void);
			
	public:
			void split(const string&, char, vector<string>&);
			int messagesInFile(string, int*);
			void createFieldTokens(int);
			int getTokenSize();
			void setTokensInProto(int);
			void getTokensFromProto(void);
	private:		
			string readLine;
			int fieldCnt;
			int msgStart;
			//Input file data holders
			deque<string> inData;
			vector<string> tokens;
};

#endif
